var EXPORTED_SYMBOLS = ["getIP"];

var CI = Components.interfaces;
var CC = Components.classes;

function getIP() {
  var ip = '127.0.0.1';
  var req = CC["@mozilla.org/xmlextras/xmlhttprequest;1"]
    .createInstance(CI.nsIXMLHttpRequest);
  req.open("GET", 'http://www.whatismyip.com/automation/n09230945.asp', false);
  req.send(null);

  ip = req.responseText;

  return ip;
}
